package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Api(tags = "查看商品")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatViewProductFeign {

    /**
     * 商品规格具体参数
     * @param productId
     * @param type
     * @return
     */
    @ApiOperation("商品规格具体参数")
    @GetMapping("/wechat/productmgr/getquerysku")
    String getQuerySku(@RequestParam("productId") String productId,@RequestParam("type") String type);

    /**
     * 产品详情
     * @param applyId
     * @param productId
     * @return
     */
    @ApiOperation("产品详情")
    @GetMapping("/wechat/productmgr/ajaxproductdetail")
    String ajaxProductDetail(@RequestParam("applyId") Long applyId,@RequestParam("productId") Long productId);

    /**
     * 商品列表
     * @param jsonObject
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("商品列表")
    @GetMapping(value = {"/wechat/productmgr/ajaxproductlist"})
    String list(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("start") Integer start,@RequestParam("pageSize") Integer pageSize);

    @GetMapping(value = {"/wechat/productmgr/ajaxproductbannerlist"})
    String bannerList();

    @GetMapping(value = {"/wechat/productmgr/indexproductlist"})
    String indexProductList(@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

    @GetMapping(value = {"/wechat/productmgr/ajaxopenshopapplydetail"})
    String ajaxOpenShopApplyDetail(@RequestParam("jsonObject")JSONObject jsonObject);

    @GetMapping(value = {"/wechat/productmgr/ajaxproductevaluatelist"})
    String ajaxProductEvaluateList(@RequestParam("productId")String productId, @RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

    @GetMapping(value = {"/wechat/productmgr/ajaxrecommendproductpages"})
    String ajaxRecommendProductPages(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("start")Integer start,@RequestParam("pageSize")Integer pageSize);

    @PostMapping(value = {"/wechat/productmgr/ajaxusaveproductpricenotice"})
    String saveProductPriceNotice(@RequestParam("jsonObject")JSONObject jsonObject);

    @GetMapping(value = {"/wechat/productmgr/ajaxproductsetting"})
    String ajaxProductSetting(@RequestParam("jsonObject")JSONObject jsonObject);

    @GetMapping(value = {"/wechat/productmgr/ajaxproductsettingmap"})
    String ajaxProductSettingMap(@RequestParam("jsonObject")JSONObject jsonObject);

    @RequestMapping({"/wechat/productmgr/list"})
    String maxProduct(@RequestParam("productId")Long productId,@RequestParam("type") String type, @RequestParam("jsonObject")JSONObject jsonObject);

    @RequestMapping({"/wechat/productmgr/getopenshop"})
    String detailProduct(@RequestParam("custId")Long custId);

    @RequestMapping({"/wechat/productmgr/getcompanyshopinfo"})
    String queryCompanyLastestShopInfo(@RequestParam("custId")Long custId);

    @RequestMapping({"/wechat/productmgr/ajaxmemberproductlist"})
    String ajaxMemberProductList(@RequestParam("jsonObject")JSONObject jsonObject);

    @RequestMapping({"/wechat/productmgr/ajaxcustcommendproduct"})
    String ajaxCustCommendProduct(@RequestParam("jsonObject")JSONObject jsonObject);

    @RequestMapping({"/wechat/productmgr/getProduct"})
    String getProduct(@RequestParam("jsonObject")JSONObject jsonObject);

}
